package com.whjz.dcfs.ssjk.model;

import com.whjz.dcfs.util.BaseModel;
import com.whjz.dcfs.util.enums.BdzShiFanEnum;

/**
 * Created by Tzhang on 2016/6/12.
 */
public class BdzData extends BaseModel implements java.io.Serializable{
    private static final long serialVersionUID = 1L;
    private String stCode;//设备编号
    private double electric_field;//电场
    private double magnetic_field;//磁场
    private double humidity;//湿度
    private double noise;//噪音
    private String dataTime;//时间
    private double batteryVoltage;//电池电压
    private double temperature;//温度
    private double longitude;
    private double latitude;
    private String state;//状态

    private String bdzName;//变电站名称(为报表加的字段)

    public String getStCode() {
        return stCode;
    }

    public void setStCode(String stCode) {
        this.stCode = stCode;
    }

    public double getElectric_field() {
        return electric_field;
    }

    public void setElectric_field(double electric_field) {
        this.electric_field = electric_field;
    }

    public double getMagnetic_field() {
        return magnetic_field;
    }

    public void setMagnetic_field(double magnetic_field) {
        this.magnetic_field = magnetic_field;
    }

    public double getHumidity() {
        return humidity;
    }

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }

    public double getNoise() {
        return noise;
    }

    public void setNoise(double noise) {
        this.noise = noise;
    }

    public String getDataTime() {
        return dataTime;
    }

    public void setDataTime(String dataTime) {
        this.dataTime = dataTime;
    }

    public double getBatteryVoltage() {
        return batteryVoltage;
    }

    public void setBatteryVoltage(double batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getBdzName() {
        if(bdzName==null){
            return BdzShiFanEnum.getBdzNameByBdzCode(this.stCode);
        }
        return bdzName;
    }

    public void setBdzName(String bdzName) {
        this.bdzName = bdzName;
    }
}
